
export default [
    { name: "Login", path: "/login", component(resolve) { require(['@/views/Login'], resolve); }, },
    { name: "Layout", path: "/layout", component(resolve) { require(['@/views/Layout'], resolve); },
        redirect: "/layout/main",
        children: [
            // 首页
            { name: "MainPage", path: "/layout/main", component(resolve) { require(['@/views/main'], resolve); } },      
            
            // 商户管理
            { name: "MchListPage", path: "/layout/merchant/belonging", component(resolve) { require(['@/views/Layout/merchant/belonging'], resolve); } },
            { name: "MchMonyList", path: "/layout/merchant/capital", component(resolve) { require(['@/views/Layout/merchant/capital'], resolve); } },
            { name: "MchBank", path: "/layout/merchant/bank", component(resolve) { require(['@/views/Layout/merchant/bank'], resolve); } },

            // 基本资料
            { name: "Basic", path: "/layout/setting/basic", component(resolve) { require(['@/views/Layout/setting/basic'], resolve); } },

            // 支付
            { name: "listProduct", path: "/layout/payment/products", component(resolve) { require(['@/views/Layout/payment/products'], resolve); } },
            { name: "listChannel", path: "/layout/payment/channel", component(resolve) { require(['@/views/Layout/payment/channel'], resolve); } },

            // 系统管理
            { name: "SysConfig", path: "/layout/system/security", component(resolve) { require(['@/views/Layout/system/security'], resolve); } },
            { name: "SysLogPage", path: "/layout/system/journal", component(resolve) { require(['@/views/Layout/system/journal'], resolve); } },
            { name: "RouteView", path: "/layout/system/role", component(resolve) { require(['@/views/Layout/system/role'], resolve); } },
            { name: "SysConfigPage", path: "/layout/system/user", component(resolve) { require(['@/views/Layout/system/user'], resolve); } },

            // 结算管理
            { name: "ChannelMony", path: "/layout/settlement/funds", component(resolve) { require(['@/views/Layout/settlement/funds'], resolve); } },
            { name: "ChannelWrite", path: "/layout/settlement/stream", component(resolve) { require(['@/views/Layout/settlement/stream'], resolve); } },
            { name: "Clear", path: "/layout/settlement/review", component(resolve) { require(['@/views/Layout/settlement/review'], resolve); } },
            { name: "Clear", path: "/layout/settlement/payment", component(resolve) { require(['@/views/Layout/settlement/payment'], resolve); } },
            { name: "Clear", path: "/layout/settlement/record", component(resolve) { require(['@/views/Layout/settlement/record'], resolve); } },

            // 订单管理
            { name: "ListPayOrder", path: "/layout/order/payment", component(resolve) { require(['@/views/Layout/order/payment'], resolve); } },
            { name: "ListCall", path: "/layout/order/callback", component(resolve) { require(['@/views/Layout/order/callback'], resolve); } },

            // 供应商管理
            { name: "ListName", path: "/layout/supplier/supply", component(resolve) { require(['@/views/Layout/supplier/supply'], resolve); } },
            { name: "ListDeposit", path: "/layout/supplier/withdrawal", component(resolve) { require(['@/views/Layout/supplier/withdrawal'], resolve); } },
            { name: "ListMony", path: "/layout/supplier/capital", component(resolve) { require(['@/views/Layout/supplier/capital'], resolve); } },
            { name: "ListGathering", path: "/layout/supplier/collection", component(resolve) { require(['@/views/Layout/supplier/collection'], resolve); } },
            { name: "ListOrder", path: "/layout/supplier/order", component(resolve) { require(['@/views/Layout/supplier/order'], resolve); } },
            { name: "ListTop", path: "/layout/supplier/recharge", component(resolve) { require(['@/views/Layout/supplier/recharge'], resolve); } },
            
        ],
    },
    {
        path: '/',
        redirect: '/login'
    }
]